package com.lzx.service.zlzs.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lzx.mapper.zlzs.MachiningMapper;
import com.lzx.mapper.zlzs.PhotoMapper;
import com.lzx.model.zlzs.Machining;
import com.lzx.model.zlzs.Photo;
import com.lzx.service.zlzs.MachiningService;
import com.lzx.service.zlzs.PhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;

@Service("photoService")
public class PhotoServiceImpl extends ServiceImpl<PhotoMapper,Photo> implements PhotoService {
    @Autowired
    private PhotoMapper photoMapper;



    @Override
    public List<Photo> selectdemolist( ){
        try {
            return photoMapper.selectdemolist();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public Photo selectdemobyid(String id){
        try {
            return photoMapper.selectdemobyid(id);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public List<Photo> selectdemolistyue(Photo photo ){
        try {
            return photoMapper.selectdemolistyue(photo);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
